package com.xq.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @title: TbloadUserVo
 * @Author Tan
 * @Date: 2020/7/28 18:52
 * @Version 1.0
 */

/**
 * 用于导出用户的信息表
 */
@Data
public class TbloadUserVo {
    /**
     *用户ID
     */
    @ExcelProperty("用户id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ExcelProperty("用户名称")
    private String username;

    @ExcelProperty("昵称")
    private String nickname;

    @ExcelProperty("邮箱")
    private String email;

    @ExcelProperty("生日")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;

    @ExcelProperty("电话号码")
    private String phoneNumber;

    @ExcelProperty("性别")
    private Integer sex;

    @ExcelProperty("状态 0锁定 1正常")
    private Integer status;

    @TableField(exist = false,value = "name")
    @ExcelProperty("部门")
    private String name;
}